package com.newtouch.bxzs.common.base.model;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * 映射关系实体类
 *
 * <p>
 * <b>History:</b>
 * <table border="1">
 * <tr>
 * <th>Date</th>
 * <th>Operator</th>
 * <th>Memo</th>
 * </tr>
 * <tr>
 * <td>2020/12/25 13:28</td>
 * <td>lhx</td>
 * <td>Create</td>
 * </tr>
 * </table>
 *
 * @author lhx
 * @version 1.0.0
 * @since 1.0.0
 */
@Data
@TableName(value = "ASSISTANT_ORGANIZATION_MAP")
public class OrganizationMap {
    /**映射机构ID ORGANIZATION_MAP_ID*/
    @TableId(value = "ORGANIZATION_MAP_ID", type = IdType.ASSIGN_UUID)
    private String organizationMapId;

    /**机构ID ORG_ID*/
    @TableField(value = "ORGANIZATION_ID")
    private String organizationId;

    /**对端机构ID ORG_OPPOSITE_ID*/
    @TableField(value = "COOPERATION_COMPANY_ORGANIZATION_ID")
    private String cooperationCompanyOrganizationId;

    /**  创建人id createUserId */
    @TableField(value = "CREATE_USER_ID")
    private String createUserId;

    /** 创建时间 createTime */
    @TableField(value = "CREATE_TIME")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    /** 修改人id updateUserId */
    @TableField(value = "UPDATE_USER_ID")
    private String updateUserId;

    /** 修改时间 updateTime */
    @TableField(value = "UPDATE_TIME")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;

    /** 备注 memo */
    @TableField(value = "MEMO")
    private String memo;

    /** 删除状态 （0：false，1：true）*/
    @TableLogic(value = "0", delval = "1")
    @TableField(value = "IS_DELETE")
    private boolean deleteFlag = false;

    /**启用状态 enable*/
    @TableField(value = "IS_ENABLE")
    private boolean enableFlag;

    /**数据来源 dataSource*/
    @TableField(value = "DATA_SOURCE")
    private String dataSource;
}
